package com.jia.dto;

import com.jia.vo.ResultCodeEnum;
import lombok.Data;

@Data
public class ZhentaoException extends RuntimeException {
    private  int code;
    private String message;


    public ZhentaoException(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
    }
}
